<template>
  <view class="container">
    <view class="navbar u-f-ajc">
      <!-- <image src="/static/jibei/home/back.png" class="abso_back" mode="widthFix"
        @click="$u.route({type: 'back', delta: 1})"></image> -->
      <!-- <image src="/static/jibei/baohe/header.png" mode="widthFix"></image> -->
    </view>

    <view class="content">
      <scroll-view scroll-y class="scroll_box">
        <view class="baohe_item relative" v-for="(item, index) in list" :key="index"
          @click="$u.route(`/pages/member/details/baozang/baoheDetail?id=${index}`)">
          <view class="tishi u-f-ajc">{{item.title}}</view>
          <view class="baohe">
            <image :src="item.image" mode="widthFix"></image>
          </view>
        </view>
      </scroll-view>
    </view>

    <tabbars :current="2"></tabbars>
  </view>
</template>

<script>
  export default {
    data() {
      return {
        list: [{
          title: '初级宝盒',
          image: '/static/jibei/baohe/item1.png',
        }, {
          title: '中级宝盒',
          image: '/static/jibei/baohe/item2.png',
        }, {
          title: '高级宝盒',
          image: '/static/jibei/baohe/item3.png',
        }, {
          title: '王者宝盒',
          image: '/static/jibei/baohe/item4.png',
        }, ],

      }
    },
    onLoad() {

    },
    methods: {

    }
  }
</script>

<style lang="scss">
  page {
    background-color: #B5C3C7;
  }

  .container {
    width: 100%;
    height: 100vh;
    // background: url(/static/jibei/home/home_bg.png) no-repeat 0 0;
    background-size: cover;
    box-sizing: border-box;
  }

  .navbar {
    width: 100%;
    padding: 140rpx 0 0;

    image {
      width: 72%;
    }
  }

  .content {
    margin-top: 50rpx;
    padding: 0 0 100rpx;
  }

  .scroll_box {
    width: 100%;
    height: 1210rpx;
    // background: url(/static/jibei/baohe/kuang.png) no-repeat 0 0;
    background-size: cover;
    box-sizing: border-box;
    padding: 50rpx 44rpx;

    .baohe_item {
      width: 100%;
      // height: 300rpx;

      .tishi {
        width: 180rpx;
        height: 70rpx;
        // background: url(/static/jibei/baohe/tishi.png) no-repeat 0 0;
        background-size: cover;
        box-sizing: border-box;
        margin-bottom: 10rpx;
        color: #FFFFFF;
        padding-bottom: 6rpx;
        padding-right: 10rpx;
        font-size: 30rpx;
      }

      .baohe {
        padding: 0 56rpx;

        image {
          width: 100%;
        }
      }
    }
  }
</style>
